#coding=utf-8


def get_object_from_ct_pk(contenttype, object_pk):
    model = contenttype.model_class()
    object = model._default_manager.get(pk=object_pk)
    return object